package soapClientDemo;//start extract SoapClientTest
import java.net.URL;

public class SoapClientTest {

    public static void main( String[] args ) {
	String servicesURL 
	    = "http://services.xmethods.net:80/soap/servlet/rpcrouter";
    	try {
	    BNQuoteService quoter 
		= (BNQuoteService) SoapInvocationHandler.createSoapProxy(
		     new Class[] {BNQuoteService.class},
		     new URL(servicesURL),
		     "urn:xmethods-BNPriceCheck",
		     "http://schemas.xmlsoap.org/soap/encoding/" );
	    
	    System.out.println( "Price is: " 
				+ quoter.getPrice("0192835750") );
	}
	catch (Exception ex) {
	    ex.printStackTrace();
	}
    }
}
//stop extract SoapClientTest
